'''Contains the PySimpleGUI layout for the non-CSN Claim Creator GUI.'''

import PySimpleGUI as sg


sg.theme('Reddit')

LAYOUT = [
    [
        sg.Text( 'Serial Number', size=(12, 1) ),
        sg.InputText( key='-SERIAL_NUMBER-', size=(20, 1) ),
    ],
    [
        sg.Text('Title', size=(12, 1), tooltip='The claim title'),
        sg.InputText( key='-TITLE-', size=(45, 5) ),
    ],
    [
        sg.Text(
            'Description',
            size=(12, 1),
            tooltip='A complete description of the problem with the device'
        ),
        sg.Multiline( key='-DESCRIPTION-', size=(45, 5) ),
    ],
    [
        sg.Text(
            'Troubleshooting',
            size=(12, 1),
            tooltip='A complete explanation of all the troubleshooting '
            'steps taken to try to resolve the problem'
        ),
        sg.Multiline( key='-TROUBLESHOOTING-', size=(45, 5) ),
    ],
    # To create a new non-CSN claim, or close the program
    [
        sg.Button(
            'Add Chromebook Issue',
            key='-ADD_CHROMEBOOK_ISSUE-',
            button_color=('white', '#005aff'),
            enable_events=True,
        ),
        sg.Button(
            'Remove Issue',
            key='-REMOVE_ISSUE-',
            button_color=('black', '#ffa500'),
            enable_events=True,
        ),
        sg.Button(
            'Create Non-CSN Claim',
            button_color=('white', '#008000'),
            tooltip="To create a new warranty claim on HP's regular warranty site"
        ),
        sg.Cancel( button_color=('black', '#ff4040') )
    ]
]
